package com.base.test.rabbitmq.service;

import lombok.Data;
import org.springframework.amqp.rabbit.connection.CorrelationData;

/**
 * 扩展CorrelationData，自定义消息内容
 * @author qiaodong
 * @since 2020-08-27
 */
@Data
public class CorrelationDataExt extends CorrelationData {
    //消息体
    private volatile String msgJson;
    //交换器
    private String exchange;
    //路由键
    private String routingKey;
    //应用编码
    private String appCode;
    //业务场景
    private String bussinessType;
}